<template>
    <div class="c-item">
        <a v-link="{name: 'detail', params: {id: item.id, cid: cid, tid: tid}}">
            <div class="r-contend">{{item.content || item.title}}</div>
        </a>
        <vote-view :aid="item.id" :up="item.good" :down="item.bad"></vote-view>
    </div>
</template>

<script>
    import VoteView from './../module/VoteView.vue'

    export default {
        name: 'TextItem',
        components:{
            VoteView
        },
        props: {
            item: Object,
            index: Number,
            cid: Number,
            tid: Number
        }
    }
</script>